package inputSpeedTest;

import java.io.BufferedInputStream;
import java.io.IOException;

public class BufferedInput
{
	public static void main(String[] args) throws IOException
	{
		BufferedInputStream in = new BufferedInputStream(System.in);
		
		in.read();
		
		long s = System.currentTimeMillis();
		int t;
		
		for(int i=0; i<1000000; i++)
		{
			t = in.read();
		}
		
		long e = System.currentTimeMillis();
		
		System.out.println(e-s);
	}
}
